import { exit } from "process";

export function control_log(message: any):void
{
    console.log("[log][控制线]" + message);
}

export function control_err(message: any, errno: number):never
{
    console.error("[ERR][控制线]" + message);
    exit(errno);
}

export function dispatcher_log(message: any):void
{
    console.log("[log][dispatcher]" + message);
}

export function dispatcher_err(message: any, errno: number):never
{
    console.error("[ERR][dispatcher]" + message);
    exit(errno);
}